-
Notifications
You must be signed in to change notification settings - Fork 6.1k
*: fix bug of 'like' expression with NO_BACKSLASH_ESCAPES sql_mode | tidb-test=pr/2678 #65973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Hi @tiancaiamao. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #65973 +/- ##
================================================
+ Coverage 77.7600% 78.7699% +1.0098%
================================================
Files 2001 1940 -61
Lines 546165 533827 -12338
================================================
- Hits 424698 420495 -4203
+ Misses 119805 112332 -7473
+ Partials 1662 1000 -662
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test unit-test |
|
@tiancaiamao: PRs from untrusted users cannot be marked as trusted with DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@tiancaiamao: PRs from untrusted users cannot be marked as trusted with DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What problem does this PR solve?
Issue Number: close #35302
Problem Summary:
'like' expression does not consider NO_BACKSLASH_ESCAPES sql_mode.
Its behavior differs from MySQL, so that's is a bug.
What changed and how does it work?
Fix this buggy behaviour maybe risky because we break the compatibility with old tidb version.
So after discussing with PM, a new system variable is introduced: @@tidb_enable_no_backslash_escapes_in_like
When a cluster is upgrade from old cluster, @@tidb_enable_no_backslash_escapes_in_like will be 'off', so it keep the old behavior.
For new bootstraped cluster, the value @@tidb_enable_no_backslash_escapes_in_like is 'on', and the bug are fixed on newer tidb.
If an user want the new behavior when the upgrade from an old tidb cluster, they have to manually operate:
Check List
Tests
Check the value of @@tidb_enable_no_backslash_escapes_in_like for new bootstraped cluster and old upgraded cluster.
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.